]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Remove timestamp parameter from close() invocations
authorTotto16 <tobiausgais@gmail.com>
Thu, 28 Mar 2024 16:55:14 +0000 (17:55 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Apr 2024 11:10:11 +0000 (11:10 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3253>

js/ui/components/networkAgent.js

index aad9ecf4fd4bd850b94d3f676d3de809010e2155..f7d57466d771c8c8570c749c5db20e6c5e2043d3 100644 (file)
@@ -145,14 +145,14 @@ class NetworkSecretDialog extends ModalDialog.ModalDialog {
 
         if (valid) {
             this._agent.respond(this._requestId, Shell.NetworkAgentResponse.CONFIRMED);
-            this.close(global.get_current_time());
+            this.close();
         }
         // do nothing if not valid
     }
 
     cancel() {
         this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED);
-        this.close(global.get_current_time());
+        this.close();
     }
 
     _validateWpaPsk(secret) {
@@ -495,7 +495,7 @@ class VPNRequestHandler extends Signals.EventEmitter {
             this._agent.respond(this._requestId, Shell.NetworkAgentResponse.USER_CANCELED);
 
         if (this._newStylePlugin && this._shellDialog) {
-            this._shellDialog.close(global.get_current_time());
+            this._shellDialog.close();
             this._shellDialog.destroy();
         } else {
             try {
@@ -823,7 +823,7 @@ class NetworkAgent {
 
     _cancelRequest(agent, requestId) {
         if (this._dialogs[requestId]) {
-            this._dialogs[requestId].close(global.get_current_time());
+            this._dialogs[requestId].close();
             this._dialogs[requestId].destroy();
             delete this._dialogs[requestId];
         } else if (this._vpnRequests[requestId]) {